/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package grundlagen;

import java.util.regex.Pattern;

/**
 *
 * @author dgreipl
 */
public class MyPatternMatcher {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        boolean b;
        b = Pattern.matches("[\\w|-]+@\\w[\\w|-]*\\.[a-z]{2,3}", 
                "x@dietergreipl.DE");
        System.out.println(b);
    }
}
